import request from '@/utils/request.js'
import mymd from "@/utils/jiami.js"

export const homeindex = (query) => {
  return request({
    method: 'post',
    url: '/new2web.php/Home/index',
    data: mymd.jiami(query)
  })
}

export const goodsList = (query) => {
  return request({
    method: 'post',
    url: '/new2web.php/Home/goodsList',
    data: mymd.jiami(query)
  })
}

export const groupInfo = (query) => {
  return request({
    method: 'post',
    url: '/new2web.php/Group/groupInfo',
    data: mymd.jiami(query)
  })
}

export const activeInfo = (query) => {
  return request({
    method: 'post',
    url: '/new2web.php/Home/activeInfo',
    data: mymd.jiami(query)
  })
}

export const CircleInfo = (query) => {
  return request({
    method: 'post',
    url: '/new2web.php/Circle/CircleInfo',
    data: mymd.jiami(query)
  })
}

export const goodsInfo = (query) => {
  return request({
    method: 'post',
    url: '/new2web.php/Goods/goodsInfo',
    data: mymd.jiami(query)
  })
}

export const newslist = (query) => {
  return request({
    method: 'post',
    url: '/new2web.php/Home/newslist',
    data: mymd.jiami(query)
  })
}

export const newsinfo = (query) => {
  return request({
    method: 'post',
    url: '/new2web.php/Home/newsinfo',
    data: mymd.jiami(query)
  })
}

export const get_tuan_share_pic = (query) => {
  return request({
    method: 'post',
    url: '/new2web.php/Share/get_tuan_share_pic',
    data: mymd.jiami(query)
  })
}

export const getconfig = (query) => {
  return request({
    method: 'post',
    url: '/new2web.php/Home/getconfig',
    data: mymd.jiami(query)
  })
}

export const banklist = (query) => {
  return request({
    method: 'post',
    url: '/new2web.php/User/banklist',
    data: mymd.jiami(query)
  })
}

export const sendMsg = (query) => {
  return request({
    method: 'post',
    url: '/new2web.php/User/sendMsg',
    data: mymd.jiami(query)
  })
}

export const apply = (query) => {
  return request({
    method: 'post',
    url: '/new2web.php/User/apply',
    reqDataType: 'file',
    data: query
  })
}

export const applyKf = (query) => {
  return request({
    method: 'post',
    url: '/new2web.php/User/applyKf',
    reqDataType: 'file',
    data: query
  })
}

export const upApplyPic = (query) => {
  return request({
    method: 'post',
    url: '/new2web.php/User/upApplyPic',
    reqDataType: 'file',
    data: query
  })
}

export const goodsInfoall = (query) => {
  console.log(query)
  return request({
    method: 'post',
    url: '/new2web.php/Home/goodsInfoall',
    data: mymd.jiami(query)
  })
}
